package com.reservoir.auth.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.reservoir.auth.form.AuthBody;
import org.apache.ibatis.annotations.Mapper;

/**
 * The interface Auth mapper.
 *
 * @author STARS
 */
@Mapper
public interface AuthMapper extends BaseMapper<AuthBody> {
    /**
     * 根据nickName 查询用户认证所需信息
     *
     * @param authBody the auth body
     * @return the auth body
     */
    AuthBody selectByNickName(AuthBody authBody);

    /**
     * 更新上次登录时间
     *
     * @param userId the user id
     * @return the integer
     */
    Integer updateLoginDateByUserId(int userId);
}
